package com.party.core.dao.write.log;

import com.party.core.dao.write.BaseWriteDao;
import com.party.core.model.log.LogEvent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by wei.li
 *
 * @date 2017/9/26 0026
 * @time 14:52
 */
@Repository
public interface LogEventWriteDao extends BaseWriteDao<LogEvent> {

    /**
     * 删除几天前的数据
     * @param type 类型
     * @param date 天数
     */
    void deleteForDate(@Param(value = "type") Integer type, @Param(value = "date") Integer date);
}
